Goto

Collaborating Authors

 in-run data shapley


In-Run Data Shapley for Adam Optimizer

arXiv.org Artificial Intelligence

Reliable data attribution is essential for understanding, debugging, and curating modern machine learning training data, with the Shapley value serving as a principled framework for data valuation. Recent In-Run Data Shapley methods avoid the prohibitive cost of retraining by decomposing data value into step-wise contributions along a single realized training trajectory. However, existing scalable in-run estimators are derived from the linear update structure of stochastic gradient descent (SGD), while modern deep learning pipelines are widely trained with adaptive optimizers such as Adam and AdamW. In this work, we show that data attribution is optimizer-dependent: SGD-induced and Adam-induced data values exhibit extremely low agreement in both magnitude and ranking, indicating that SGD-based attribution can lead to misleading rank-based decisions under Adam training. To address this mismatch, we propose Adam-Aware In-Run Data Shapley, an optimizer-consistent attribution framework for Adam training. We define a fixed-state Adam local utility and derive a first-order approximation that explicitly accounts for momentum and coordinate-wise variance normalization. To make the estimator scalable, we introduce a Linearized Ghost Approximation, which restores an additive dot-product form without materializing per-sample gradients. Experiments show that our method achieves near-perfect fidelity to exact local Shapley values under the fixed-state Adam utility (R > 0.99), substantially improves efficiency over direct per-sample Adam-aware computation, and improves downstream rank-based attribution tasks including semantic source identification and data pruning.


Data Shapley in One Training Run

arXiv.org Machine Learning

Data Shapley provides a principled framework for attributing data's contribution within machine learning contexts. However, existing approaches require re-training models on different data subsets, which is computationally intensive, foreclosing their application to large-scale models. Furthermore, they produce the same attribution score for any models produced by running the learning algorithm, meaning they cannot perform targeted attribution towards a specific model obtained from a single run of the algorithm. This paper introduces In-Run Data Shapley, which addresses these limitations by offering scalable data attribution for a target model of interest. In its most efficient implementation, our technique incurs negligible additional runtime compared to standard model training. This dramatic efficiency improvement makes it possible to perform data attribution for the foundation model pretraining stage for the first time. We present several case studies that offer fresh insights into pretraining data's contribution and discuss their implications for copyright in generative AI and pretraining data curation.